<!--
 * @Author: yumao 123456
 * @Date: 2023-05-31 10:09:54
 * @LastEditors: yumao 123456
 * @LastEditTime: 2024-03-12 16:36:45
 * @FilePath: \zyDataScreen\src\views\sjdp\components\ZyScreenLeft.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div class="rightBox">
        <div class="chart-box R1_box">
            <div class="box-arr">
                <div class="box-l">
                    <div class="chart-mini-box">
                        <div class="chart-mini-title">
                            挂牌客户
                            <div
                                class="openIcon"
                                style="right: -12px; top: -4px"
                                @click="openInfo('挂牌客户', false)"
                            >
                                <img src="@/assets/home/start.png" alt="" />
                            </div>
                        </div>
                        <div class="chart-mini-chart">
                            <div
                                id="rightChart1"
                                style="width: 100%; height: 250px"
                            ></div>
                        </div>
                    </div>
                </div>
                <div class="box-r">
                    <div class="chart-mini-box">
                        <div class="chart-mini-title">
                            成交客户
                            <div
                                class="openIcon"
                                style="right: -12px; top: -4px"
                                @click="openInfo('成交客户', false)"
                            >
                                <img src="@/assets/home/start.png" alt="" />
                            </div>
                        </div>
                        <div class="chart-mini-chart">
                            <div
                                id="rightChart2"
                                style="width: 100%; height: 250px"
                            ></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="chart-box R2_box">
            <div class="box-list">
                <div class="box-li-item">
                    <div class="chart-mini-box">
                        <div class="box-li-item-bt">
                            <div class="box-li-item-btone">
                                <div class="chart-mini-title">
                                    新客&再购客
                                    <div
                                        class="openIcon"
                                        style="right: -20px; top: -4px"
                                        @click="openInfo('再购客', false)"
                                    >
                                        <img
                                            src="@/assets/home/start.png"
                                            alt=""
                                        />
                                    </div>
                                </div>
                                <div class="datavBox">
                                    <ul class="chartDatavEL">
                                        <li
                                            v-for="(
                                                item, index
                                            ) in config1.data"
                                            :key="index"
                                            style="width: 40px; cursor: pointer"
                                            @click="
                                                changeReturningCustomer(
                                                    item.name
                                                )
                                            "
                                        >
                                            <div
                                                class="radiu"
                                                :style="{
                                                    'background-color':
                                                        config1.color[index]
                                                }"
                                            ></div>
                                            <p>{{ item.name }}</p>
                                        </li>
                                    </ul>
                                    <div class="chartDatav">
                                        <dv-active-ring-chart
                                            :config="config1"
                                            style="width: 100px; height: 100px"
                                        />
                                    </div>
                                </div>
                            </div>
                            <div class="box-li-item-btone">
                                <div class="chart-mini-title">再购客</div>
                                <ul class="tableList">
                                    <li
                                        class="itemli"
                                        v-for="(
                                            item, index
                                        ) in ReturningCustomersTop"
                                        :key="index"
                                    >
                                        <div class="items">
                                            {{ index + 1 }}
                                        </div>
                                        <p class="itemsp">{{ item.key }}</p>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="box-li-item">
                    <div class="chart-mini-box">
                        <div class="chart-mini-title">挂牌机构</div>
                        <div class="chart-mini-chart">
                            <div
                                id="rightChart3"
                                style="width: 100%; height: 230px"
                            ></div>
                        </div>
                    </div>
                </div>
                <div class="box-li-item">
                    <div class="chart-mini-box">
                        <div class="chart-mini-title">
                            挂牌机构TOP
                            <div
                                class="openIcon"
                                style="right: -22px; top: -4px"
                                @click="openInfo('挂牌机构', false)"
                            >
                                <img src="@/assets/home/start.png" alt="" />
                            </div>
                        </div>
                        <ul class="tableList">
                            <li
                                class="itemli"
                                v-for="(item, index) in ListingInstitutions"
                                :key="index"
                            >
                                <div class="items">
                                    {{ index + 1 }}
                                </div>
                                <p class="itemsp">{{ item.key }}</p>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <div class="chart-box R3_box">
            <div class="box-list">
                <div class="box-li-item">
                    <div class="chart-mini-box">
                        <div class="box-li-item-bt">
                            <div
                                class="box-li-item-btone"
                                style="height: 140px"
                            >
                                <div class="chart-mini-title">
                                    竞价数
                                    <div
                                        class="openIcon"
                                        style="right: -15px; top: -4px"
                                        @click="openInfo('竞价数', false)"
                                    >
                                        <img
                                            src="@/assets/home/start.png"
                                            alt=""
                                        />
                                    </div>
                                </div>
                                <div class="datavBox">
                                    <ul class="chartDatavEL">
                                        <li
                                            v-for="(
                                                item, index
                                            ) in config2.data"
                                            :key="index"
                                            style="width: 30px; cursor: pointer"
                                            @click="changeBid(item.name)"
                                        >
                                            <div
                                                class="radiu"
                                                :style="{
                                                    'background-color':
                                                        config2.color[index]
                                                }"
                                            ></div>
                                            <p>{{ item.name }}</p>
                                        </li>
                                    </ul>
                                    <div class="chartDatav">
                                        <dv-active-ring-chart
                                            :config="config2"
                                            style="width: 100px; height: 110px"
                                        />
                                    </div>
                                </div>
                            </div>
                            <div
                                class="box-li-item-btone"
                                style="height: 140px"
                            >
                                <div class="chart-mini-title">
                                    TOP竞价率
                                    <div
                                        class="openIcon"
                                        style="right: -15px; top: -4px"
                                        @click="openInfo('TOP竞价率', false)"
                                    >
                                        <img
                                            src="@/assets/home/start.png"
                                            alt=""
                                        />
                                    </div>
                                </div>
                                <div class="datavBox">
                                    <ul class="chartDatavEL">
                                        <li
                                            v-for="(
                                                item, index
                                            ) in config3.data"
                                            :key="index"
                                            style="cursor: pointer"
                                            @click="changeBidTop(item.name)"
                                        >
                                            <div
                                                class="radiu"
                                                :style="{
                                                    'background-color':
                                                        config3.color[index]
                                                }"
                                            ></div>
                                            <p>{{ item.name }}</p>
                                        </li>
                                    </ul>
                                    <div class="chartDatav">
                                        <dv-active-ring-chart
                                            :config="config3"
                                            style="width: 100px; height: 110px"
                                        />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="box-li-item">
                    <div class="chart-mini-box">
                        <div class="chart-mini-title">竞价</div>
                        <div class="chart-mini-chart">
                            <div
                                id="rightChart4"
                                style="width: 100%; height: 240px"
                            ></div>
                        </div>
                    </div>
                </div>
                <div class="box-li-item">
                    <div class="chart-mini-box">
                        <div class="chart-mini-title">
                            TOP溢价率
                            <div
                                class="openIcon"
                                style="right: -20px; top: -4px"
                                @click="openInfo('溢价率', true)"
                            >
                                <img src="@/assets/home/start.png" alt="" />
                            </div>
                        </div>
                        <ul class="tableList">
                            <li
                                class="itemli"
                                v-for="(item, index) in PremiumRate"
                                :key="index"
                            >
                                <div class="items">
                                    {{ index + 1 }}
                                </div>
                                <p class="itemsp">{{ item.value }}</p>
                                <!-- <el-tooltip
                                    class="item"
                                    effect="dark"
                                    :content="item.value"
                                    placement="top-start"
                                >
                                   
                                </el-tooltip> -->
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
import { screenRightData } from '@/api/home.js'
export default {
    props: {
        paramsData: {
            type: Object,
            default: {
                city: '',
                area: '',
                operator: '',
                fromDate: '2023-01-01',
                toDate: '2023-12-31',
                year: '',
                month: '',
                customer: '',
                listedAmount: '',
                transactionAmount: '',
                fee: '',
                bid: '',
                bidTop: '',
                day: '',
                returningCustomer: '',
                page: '',
                pageSize: ''
            }
        }
    },
    data() {
        return {
            config1: {
                color: [
                    '#4796DB',
                    '#493FEE',
                    '#8C03E7',
                    '#C76F3D',
                    '#36B59D',
                    '#8CAF49',
                    '#D4CC40',
                    '#FFC94B'
                ],
                data: [],
                lineWidth: 15,
                radius: '60%',
                activeRadius: '68%',
                digitalFlopStyle: {
                    fontSize: 12,
                    fill: '#fff'
                }
            },
            config2: {
                color: [
                    '#4796DB',
                    '#493FEE',
                    '#8C03E7',
                    '#C76F3D',
                    '#36B59D',
                    '#8CAF49',
                    '#D4CC40',
                    '#FFC94B'
                ],
                data: [],
                lineWidth: 15,
                radius: '60%',
                activeRadius: '68%',
                digitalFlopStyle: {
                    fontSize: 12,
                    fill: '#fff'
                }
            },
            config3: {
                color: [
                    '#4796DB',
                    '#8CAF49',
                    '#493FEE',
                    '#493FEE',
                    '#C76F3D',
                    '#36B59D'
                ],
                data: [],
                lineWidth: 15,
                radius: '60%',
                activeRadius: '68%',
                digitalFlopStyle: {
                    fontSize: 12,
                    fill: '#fff'
                }
            },

            rightChart1: null, //图表对象
            rightChart2: null, //图表对象
            rightChart3: null, //图表对象
            rightChart3: null, //图表对象
            ReturningCustomersTop: [],
            ListingInstitutions: [],
            PremiumRate: []
        }
    },
    computed: {},
    created() {},
    mounted() {
        this.rightChartgetall()
    },
    watch: {},
    methods: {
        rightChartgetall(data) {
            screenRightData(this.paramsData).then((res) => {
                let resData = res.data
                this.drawrightChart1(
                    resData.ListedCustomers.line.xAxis,
                    resData.ListedCustomers.line.series
                )
                this.drawrightChart2(
                    resData.TransactionCustomers.line.xAxis,
                    resData.TransactionCustomers.line.series
                )

                this.config1.data =
                    resData.ReturningCustomers.ReturningCustomers.map(
                        (item) => {
                            return {
                                name: item.key,
                                value: item.value
                            }
                        }
                    )
                this.config1 = { ...this.config1 }
                this.ReturningCustomersTop =
                    resData.ReturningCustomers.ReturningCustomersTop.slice(0, 3)
                let num3 = resData.ListingInstitutions.length + 1
                let xAxis3 = resData.ListingInstitutions.map((item, index) => {
                    return (num3 -= 1)
                })
                let series3is = resData.ListingInstitutions.map(
                    (item, index) => {
                        return item.value
                    }
                )
                let series3 = series3is.sort((a, b) => a - b)
                this.drawrightChart3(xAxis3, series3)
                this.ListingInstitutions = resData.ListingInstitutions
                this.config2.data = resData.NumberOfBids.map((item) => {
                    return {
                        name: item.key,
                        value: item.value
                    }
                })
                this.config2 = { ...this.config2 }
                this.config3.data = resData.RateOfBids.map((item) => {
                    return {
                        name: item.key,
                        value: item.value
                    }
                })
                this.config3 = { ...this.config3 }

                let num4 = resData.SortOfBids.length + 1
                let xAxis4 = resData.SortOfBids.map((item, index) => {
                    return (num4 -= 1)
                })
                let series4is = resData.SortOfBids.map((item, index) => {
                    return item.value
                })
                let series4 = series4is.sort((a, b) => a - b)
                this.drawrightChart4(xAxis4, series4)
                this.PremiumRate = resData.PremiumRate
            })
        },
        drawrightChart1(xAxis, series) {
            this.rightChart1 = this.$echarts.init(
                document.getElementById('rightChart1')
            )
            let option = {
                tooltip: {
                    trigger: 'axis',
                    backgroundColor: '#040B15',
                    borderColor: '#040B15',
                    textStyle: {
                        color: 'rgba(255, 255, 255, 0.65)',
                        fontSize: 12
                    }
                },
                grid: {
                    show: false,
                    top: '15%', // 一下数值可为百分比也可为具体像素值
                    right: '20%',
                    bottom: '20%',
                    left: '18%'
                },
                legend: {
                    bottom: '3%',
                    left: 'center',
                    textStyle: {
                        color: 'rgba(255, 255, 255, 0.65)'
                    },
                    itemWidth: 10,
                    itemHeight: 10
                },
                xAxis: [
                    {
                        type: 'category',
                        data: xAxis,
                        axisPointer: {
                            type: 'shadow'
                        },
                        axisTick: {
                            show: true
                        },
                        axisLabel: {
                            color: '#AFAFAF',
                            fontSize: 12,
                            interval: 0, // 横轴信息全部显示
                            rotate: -30 // -30度角倾斜显示
                        }
                    }
                ],
                yAxis: [
                    {
                        type: 'value',

                        axisLabel: {
                            color: 'rgba(175, 175, 175, 1)' // y 轴标注颜色
                        },
                        splitLine: {
                            lineStyle: {
                                type: 'solid', // 虚线
                                color: 'rgba(53, 65, 91, 0.15)'
                            },
                            show: true
                        }
                    }
                ],
                series: [
                    {
                        type: 'bar',
                        data: series,
                        itemStyle: {
                            color: {
                                type: 'linear',
                                x: 0, // 右
                                y: 0, // 下
                                x2: 0, // 左
                                y2: 1, // 上
                                colorStops: [
                                    {
                                        offset: 0,
                                        color: 'rgba(89, 160, 215, 0.90)' // 0% 处的颜色
                                    },
                                    {
                                        offset: 1,
                                        color: 'rgba(89, 160, 215, 0.2)' // 100% 处的颜色
                                    }
                                ]
                            }
                        },
                        barWidth: 12,
                        label: {
                            show: true,
                            width: 12,
                            height: 12,
                            borderRadius: 1000,
                            color: 'rgba(0,0,0,0)',
                            backgroundColor: '#73D5FF',
                            position: ['0%', -4],
                            shadowBlur: 20,
                            shadowColor: '#e6f6fd'
                        }
                    }
                    // {
                    //     name: '次均巡查覆盖度',
                    //     type: 'bar',
                    //     tooltip: {},
                    //     data: [
                    //         10, 20, 30, 40, 20, 30, 20, 10, 20, 30, 40, 20, 30,
                    //         20, 10, 20, 30, 40, 20, 30, 20
                    //     ],
                    //     itemStyle: {
                    //         color: {
                    //             type: 'linear',
                    //             x: 0, // 右
                    //             y: 0, // 下
                    //             x2: 0, // 左
                    //             y2: 1, // 上
                    //             colorStops: [
                    //                 {
                    //                     offset: 0,
                    //                     color: 'rgba(172, 87, 182, 0.90)' // 0% 处的颜色
                    //                 },
                    //                 {
                    //                     offset: 1,
                    //                     color: 'rgba(172, 87, 182, 0.2)' // 100% 处的颜色
                    //                 }
                    //             ]
                    //         }
                    //     },
                    //     barWidth: 8,
                    //     barGap: '60%',
                    //     label: {
                    //         show: true,
                    //         width: 8,
                    //         height: 8,
                    //         borderRadius: 1000,
                    //         color: 'rgba(0,0,0,0)',
                    //         backgroundColor: '#FEB9FC',
                    //         position: ['0%', -4],
                    //         shadowBlur: 20,
                    //         shadowColor: '#eab9f1'
                    //     }
                    // }
                ]
            }
            this.rightChart1.setOption(option)
            this.rightChart1.on('click', this.handleClick1)
        },
        drawrightChart2(xAxis, series) {
            this.rightChart2 = this.$echarts.init(
                document.getElementById('rightChart2')
            )
            let option = {
                tooltip: {
                    trigger: 'axis',
                    backgroundColor: '#040B15',
                    borderColor: '#040B15',
                    textStyle: {
                        color: 'rgba(255, 255, 255, 0.65)',
                        fontSize: 12
                    }
                },
                grid: {
                    show: false,
                    top: '15%', // 一下数值可为百分比也可为具体像素值
                    right: '20%',
                    bottom: '20%',
                    left: '22%'
                },
                legend: {
                    bottom: '3%',
                    left: 'center',
                    textStyle: {
                        color: 'rgba(255, 255, 255, 0.65)'
                    },
                    itemWidth: 10,
                    itemHeight: 10
                },
                xAxis: [
                    {
                        type: 'category',
                        data: xAxis,
                        axisPointer: {
                            type: 'shadow'
                        },
                        axisTick: {
                            show: true
                        },
                        axisLabel: {
                            color: '#AFAFAF',
                            fontSize: 12,
                            interval: 0, // 横轴信息全部显示
                            rotate: -30 // -30度角倾斜显示
                        }
                    }
                ],
                yAxis: [
                    {
                        type: 'value',

                        axisLabel: {
                            color: 'rgba(175, 175, 175, 1)' // y 轴标注颜色
                        },
                        splitLine: {
                            lineStyle: {
                                type: 'solid', // 虚线
                                color: 'rgba(53, 65, 91, 0.15)'
                            },
                            show: true
                        }
                    }
                ],
                series: [
                    {
                        type: 'bar',
                        data: series,
                        itemStyle: {
                            color: {
                                type: 'linear',
                                x: 0, // 右
                                y: 0, // 下
                                x2: 0, // 左
                                y2: 1, // 上
                                colorStops: [
                                    {
                                        offset: 0,
                                        color: 'rgba(222, 163, 120, 1)' // 0% 处的颜色
                                    },
                                    {
                                        offset: 1,
                                        color: 'rgba(42, 37, 75, 1)' // 100% 处的颜色
                                    }
                                ]
                            }
                        },
                        barWidth: 12,
                        label: {
                            show: true,
                            width: 12,
                            height: 12,
                            borderRadius: 1000,
                            color: 'rgba(0,0,0,0)',
                            backgroundColor: '#FFC94B',
                            position: ['0%', -4],
                            shadowBlur: 20,
                            shadowColor: '#ffe7b3'
                        }
                    }
                    // {
                    //     name: '次均巡查覆盖度',
                    //     type: 'bar',
                    //     tooltip: {},
                    //     data: [
                    //         10, 20, 30, 40, 20, 30, 20, 10, 20, 30, 40, 20, 30,
                    //         20, 10, 20, 30, 40, 20, 30, 20
                    //     ],
                    //     itemStyle: {
                    //         color: {
                    //             type: 'linear',
                    //             x: 0, // 右
                    //             y: 0, // 下
                    //             x2: 0, // 左
                    //             y2: 1, // 上
                    //             colorStops: [
                    //                 {
                    //                     offset: 0,
                    //                     color: 'rgba(52, 181, 163, 1)' // 0% 处的颜色
                    //                 },
                    //                 {
                    //                     offset: 1,
                    //                     color: 'rgba(42, 37, 75, 1)' // 100% 处的颜色
                    //                 }
                    //             ]
                    //         }
                    //     },
                    //     barWidth: 8,
                    //     barGap: '60%',
                    //     label: {
                    //         show: true,
                    //         width: 8,
                    //         height: 8,
                    //         borderRadius: 1000,
                    //         color: 'rgba(0,0,0,0)',
                    //         backgroundColor: '#7EFFFF',
                    //         position: ['0%', -4],
                    //         shadowBlur: 20,
                    //         shadowColor: '#beffff'
                    //     }
                    // }
                ]
            }
            this.rightChart2.setOption(option)
        },
        drawrightChart3(xAxis, series) {
            this.rightChart3 = this.$echarts.init(
                document.getElementById('rightChart3')
            )
            let option = {
                tooltip: {
                    trigger: 'axis',
                    backgroundColor: '#040B15',
                    borderColor: '#040B15',
                    textStyle: {
                        color: 'rgba(255, 255, 255, 0.65)',
                        fontSize: 12
                    }
                },
                grid: {
                    show: false,
                    top: '6%', // 一下数值可为百分比也可为具体像素值
                    right: '16%',
                    bottom: '5%',
                    left: '18%'
                },

                xAxis: [
                    {
                        type: 'value',
                        axisLabel: {
                            show: false
                        },
                        axisPointer: {
                            type: 'shadow'
                        },
                        axisTick: {
                            show: false
                        },
                        splitLine: {
                            show: false
                        }
                    }
                ],
                yAxis: [
                    {
                        type: 'category',
                        data: xAxis,
                        axisLabel: {
                            color: 'rgba(255, 255, 255, 0.65)' // y 轴标注颜色
                        },
                        splitLine: {
                            lineStyle: {
                                type: 'dashed', // 虚线
                                color: 'rgba(255, 255, 255, 0.15)'
                            },
                            show: false
                        }
                    }
                ],
                series: [
                    {
                        type: 'bar',
                        data: series,
                        itemStyle: {
                            color: {
                                type: 'linear',
                                x: 1, // 右
                                y: 0, // 下
                                x2: 0, // 左
                                y2: 0, // 上
                                colorStops: [
                                    {
                                        offset: 0,
                                        color: 'rgba(65, 54, 122, 1)' // 0% 处的颜色
                                    },
                                    {
                                        offset: 1,
                                        color: 'rgba(89, 160, 215,1)' // 100% 处的颜色
                                    }
                                ]
                            },
                            borderRadius: [6, 6, 6, 6]
                        },
                        barWidth: 10,
                        label: {
                            show: true, // 显示标签
                            position: 'right', // 将标签放在顶部位置
                            textStyle: {
                                color: '#ffffff'
                            }
                        }
                    }
                ]
            }
            this.rightChart3.setOption(option)
        },
        drawrightChart4(xAxis, series) {
            this.rightChart4 = this.$echarts.init(
                document.getElementById('rightChart4')
            )
            let option = {
                tooltip: {
                    trigger: 'axis',
                    backgroundColor: '#040B15',
                    borderColor: '#040B15',
                    textStyle: {
                        color: 'rgba(255, 255, 255, 0.65)',
                        fontSize: 12
                    }
                },
                grid: {
                    show: false,
                    top: '8%', // 一下数值可为百分比也可为具体像素值
                    right: '16%',
                    bottom: '5%',
                    left: '18%'
                },

                xAxis: [
                    {
                        type: 'value',
                        axisLabel: {
                            show: false
                        },
                        axisPointer: {
                            type: 'shadow'
                        },
                        axisTick: {
                            show: false
                        },
                        splitLine: {
                            show: false
                        }
                    }
                ],
                yAxis: [
                    {
                        type: 'category',
                        data: xAxis,
                        axisLabel: {
                            color: 'rgba(255, 255, 255, 0.65)' // y 轴标注颜色
                        },
                        splitLine: {
                            lineStyle: {
                                type: 'dashed', // 虚线
                                color: 'rgba(255, 255, 255, 0.15)'
                            },
                            show: false
                        }
                    }
                ],
                series: [
                    {
                        type: 'bar',
                        data: series,
                        itemStyle: {
                            color: {
                                type: 'linear',
                                x: 1, // 右
                                y: 0, // 下
                                x2: 0, // 左
                                y2: 0, // 上
                                colorStops: [
                                    {
                                        offset: 0,
                                        color: 'rgba(65, 54, 122, 1)' // 0% 处的颜色
                                    },
                                    {
                                        offset: 1,
                                        color: 'rgba(89, 160, 215,1)' // 100% 处的颜色
                                    }
                                ]
                            },
                            borderRadius: [6, 6, 6, 6]
                        },
                        barWidth: 10,
                        label: {
                            show: true, // 显示标签
                            position: 'right', // 将标签放在顶部位置
                            textStyle: {
                                color: '#ffffff'
                            }
                        }
                    }
                ]
            }
            this.rightChart4.setOption(option)
        },
        // echarts点击
        handleClick1(params) {
            if (this.paramsData.customer) {
                this.paramsData.customer = ''
            } else {
                this.paramsData.customer = params.name
            }

            this.$emit('allChangeData', this.paramsData)
        },
        changeBidTop(name) {
            if (this.paramsData.bidTop) {
                this.paramsData.bidTop = ''
            } else {
                this.paramsData.bidTop = name
            }
            this.$emit('allChangeData', this.paramsData)
        },
        changeBid(name) {
            if (this.paramsData.bid) {
                this.paramsData.bid = ''
            } else {
                this.paramsData.bid = name
            }
            this.$emit('allChangeData', this.paramsData)
        },
        changeReturningCustomer(name) {
            if (this.paramsData.returningCustomer) {
                this.paramsData.returningCustomer = ''
            } else {
                this.paramsData.returningCustomer = name
            }
            this.$emit('allChangeData', this.paramsData)
        },
        // 打开详情
        openInfo(name, isSroll) {
            this.$emit('openInfo', name, isSroll)
        }
    },
    beforeDestroy() {
        if (this.rightChart1) {
            this.rightChart1.off('click', this.handleClick1)
            this.rightChart1.dispose()
        }
    },
    components: {}
}
</script>

<style lang="scss" scoped>
.rightBox {
    width: 100%;
    position: relative;

    p {
        padding: 0;
        margin: 0;
    }

    .chart-box {
        width: 100%;
        background-size: cover;
        height: 100%;
        position: relative;
        overflow: hidden;
        background: rgba(30, 39, 75, 0.6);
        &-title {
            width: 363px;
            height: 33px;
            background-image: url('../../../assets/home/maxT.png');
            background-size: 100%;
            position: absolute;
            left: 0;
            top: 0;
            font-weight: bold;
            color: #ffffff;
            line-height: 30px;
            font-size: 15px;
            text-indent: 34px;
            .unit {
                font-size: 13px;
                font-weight: 400;
                font-style: italic;
            }
        }
        .chart-mini-box {
            position: relative;
            .chart-mini-title {
                width: 88px;
                height: 21px;
                background-image: url('../../../assets/home/minT.png');
                background-size: 100%;
                line-height: 21px;
                text-align: center;
                margin: auto;
                font-size: 12px;
                font-weight: bold;
                color: #ffffff;
                position: relative;
                &::before {
                    content: '';
                    width: 7px;
                    height: 7px;
                    display: block;
                    background-image: url('../../../assets/home/mart.png');
                    background-size: 100%;
                    position: absolute;
                    top: 7px;
                    left: 2px;
                }
            }
            .start {
                width: 20px;
                height: 20px;
                background-image: url('../../../assets/home/start.png');
                position: absolute;
                top: 2px;
                right: 2px;
            }
        }
    }
    .box-arr {
        display: flex;
        .box-l {
            width: 50%;
        }
        .box-r {
            width: 50%;
        }
    }
    .box-list {
        display: flex;
        justify-content: space-between;
        .box-li-item {
            width: 31%;
        }
    }
    .box-li-item-bt {
        &one {
            height: 120px;
        }
    }
    .datavBox {
        display: flex;
        align-items: center;
    }
    .chartDatavEL {
        li {
            display: flex;
            font-size: 8px;
            color: #ffffff;
            line-height: 14px;
            width: 40px;
            align-items: center;
            transition: transform 0.3s ease; /*添加动画效果*/
            &:hover {
                transform: scale(1.5);
            }
            .radiu {
                width: 6px;
                height: 6px;
                border-radius: 50%;
                margin-right: 3px;
            }
        }
    }
    .tableList {
        width: 95%;
        margin: 10px auto 0;
        .itemli {
            width: 100%;
            display: flex;
            font-size: 14px;
            color: #92d4e0;
            height: 35px;
            align-items: center;
            .itemsp {
                width: calc(100% - 27px);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .items {
                width: 22px; /* 设置正方形的宽度 */
                height: 18px; /* 设置正方形的高度 */
                position: relative; /* 为了让伪元素相对于该容器定位 */
                // text-shadow: 2px 2px 2px rgba(70, 206, 226, 0.5);
                text-align: center;
                line-height: 18px;
                font-size: 14px;
                color: #49dcee;
                font-weight: bold;
                margin-right: 5px;
                background: radial-gradient(
                    circle at center,
                    #3a484a,
                    transparent
                );
                &::before {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 7px;
                    height: 7px;
                    content: '';
                    border-left: 1px solid #49dcee;
                    border-top: 1px solid #49dcee;
                }

                &::after {
                    position: absolute;
                    bottom: 0;
                    right: 0;
                    width: 7px;
                    height: 7px;
                    content: '';
                    border-right: 1px solid #49dcee;
                    border-bottom: 1px solid #49dcee;
                }
            }
            &:nth-of-type(1) {
                color: #e7ebc2;
                .items {
                    color: #fdd473;

                    background: radial-gradient(
                        circle at center,
                        #3a484a,
                        transparent
                    );
                    &::before {
                        border-left: 1px solid #fdd473;
                        border-top: 1px solid #fdd473;
                    }

                    &::after {
                        border-right: 1px solid #fdd473;
                        border-bottom: 1px solid #fdd473;
                    }
                }
            }
            &:nth-of-type(2) {
                color: #cebab6;
                .items {
                    color: #eb9f70;

                    background: radial-gradient(
                        circle at center,
                        #3a484a,
                        transparent
                    );
                    &::before {
                        border-left: 1px solid #eb9f70;
                        border-top: 1px solid #eb9f70;
                    }

                    &::after {
                        border-right: 1px solid #eb9f70;
                        border-bottom: 1px solid #eb9f70;
                    }
                }
            }
        }
    }
    // .chartTbiao {
    //     font-size: 14px;
    //     font-family: MicrosoftYaHei;
    //     background-image: -webkit-linear-gradient(
    //         bottom,
    //         #2bb3ff 0%,
    //         #38e7ee 100%
    //     );
    //     -webkit-background-clip: text;
    //     -webkit-text-fill-color: transparent;
    //     font-weight: 600;
    //     margin-top: 10px;
    // }
    .R1_box {
        height: 298px;

        box-sizing: border-box;
        padding: 19px 26px 7px 26px;
        cursor: pointer;
    }
    .R2_box {
        height: 285px;

        box-sizing: border-box;
        padding: 19px 26px 10px 26px;
        margin-top: 15px;
        cursor: pointer;
    }
    .R3_box {
        height: 295px;

        box-sizing: border-box;
        padding: 19px 26px 10px 26px;
        margin-top: 15px;
    }
}
</style>